package com.zhenxiang.juc.function;

import com.sun.scenario.effect.impl.sw.sse.SSEBlend_SRC_OUTPeer;

import java.util.function.Supplier;

/**
 * @Author : James
 * @Create : 2021-12-27-16:01
 * @Description :
 *  Supplier 供给型接口  没有参数，只有返回值
 *
 */
public class Demo04 {

    public static void main(String[] args) {
       /* Supplier supplier = new Supplier() {
            @Override
            public Integer get() {
                return 100;
            }
        };
        System.out.println(supplier.get());*/

        Supplier supplier = () -> {
            return 100;
        };
        System.out.println(supplier);
    }
}
